import {createThunkAction} from "../../lib/redux-utils";
import {get, postJson} from "../../lib/http";

const path = "/orderAnalysis";
const ACTION_PREFIX = "DASHBOARD.";

export const clientPriceQuery = createThunkAction(ACTION_PREFIX + "QUERY_CLIENT_PRICE", params =>
    postJson(path + "/clientPriceQuery", params)
);
export const clientCountQuery = createThunkAction(ACTION_PREFIX + "QUERY_CLIENT_ORDER", params =>
    postJson(path + "/clientCountQuery", params)
);
export const carrierPriceQuery = createThunkAction(ACTION_PREFIX + "QUERY_CARRIER_PRICE", params =>
    postJson(path + "/carrierPriceQuery", params)
);
export const carrierOrderQuery = createThunkAction(ACTION_PREFIX + "QUERY_CARRIER_ORDER", params =>
    postJson(path + "/carrierCountQuery", params)
);






